package com.learn.ert.service.impl;

import com.learn.ert.mapper.ErUserMapper;
import com.learn.ert.pojo.ErUserEntity;
import com.learn.ert.service.ErUserService;
import com.learn.ert.utils.PageUtils;
import com.learn.ert.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


@Service("erUserService")
public class ErUserServiceImpl extends ServiceImpl<ErUserMapper, ErUserEntity> implements ErUserService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ErUserEntity> page = this.page(
                new Query<ErUserEntity>().getPage(params),
                new QueryWrapper<ErUserEntity>()
        );

        return new PageUtils(page);
    }

}